From 991c8b6312a3ccc5d9d103fc4e6f07a92b388b1c Mon Sep 17 00:00:00 2001 From: robertlipe Date: Sun, 11 May 2014 20:30:22 +0000 Subject: [PATCH] Comment that option 'foo=foo' won't work. --- gpsbabel/vecs.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpsbabel/vecs.cc b/gpsbabel/vecs.cc index e6ed393d8..6a485b2f5 100644 --- a/gpsbabel/vecs.cc +++ b/gpsbabel/vecs.cc @@ -1149,6 +1149,9 @@ assign_option(const char* module, arglist_t* ap, const char* val) return; } + // Fixme - this is probably somewhere between wrong and less than great. If you have an option "foo" + // and want to set it to the value "foo", this code will prevent that from happening, but we seem to have + // code all over the place that relies on this. :-/ if (case_ignore_strcmp(val, ap->argstring) == 0) { c = ""; } else { -- 2.30.2